package com.kingyea.app.market.authorize.service;

import com.kingyea.app.market.auth.bean.Authorize;
import com.kingyea.mobilepolice.user.bean.User;

import java.util.List;
import java.util.Map;

public interface AuthorizeService {
    /**
     * 通过ID获取对象
     */
    Authorize getById(String accreditId) throws Exception;

    /**
     * 通过ID删除对象
     */
    int deleteById(String accreditId) throws Exception;

    /**
     * 保存对象
     */
    Authorize save(Authorize obj) throws Exception;

    /**
     * 查询列表
     */
    List<Authorize> list(Map<String, Object> obj) throws Exception;

    /**
     * 批量插入
     *
     * @param userLists
     * @return
     * @throws Exception
     */
    int doSave(String appCode, List<User> userLists) throws Exception;

    /**
     * 删除授权，多条件
     *
     * @param obj
     * @throws Exception
     */
    void deleteAuth(Authorize obj) throws Exception;
}
